package com.serial.comm.modular.serialPort.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 有效电报信息表
 * </p>
 *
 * @author chentl123
 * @since 2020-02-21
 */
@TableName("wh_serial_telegram")
public class Telegram extends Model<Telegram> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 电报接收时间
     */
    private Date recDate;
    /**
     * 电报发送时间
     */
    private String  sendDate;
    /**
     * Data Analysis Start Time 电报处理开始时间
     */
    private Date daStartTime;
    /**
     * Data Analysis End Time 电报处理结束时间
     */
    private Date daEndTime;
    /**
     * 电报等级（一般为两个字符 例如SS QA QK QD QS等）
     */
    private String priority;
    /**
     * 唯一标识
     */
    private String guid;
    /**
     * 收电地址
     */
    private String origin;
    /**
     * 发电地址
     */
    private String destination;
    /**
     * 电报内容
     */
    private String text;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 完整报文原始id(对应wh_serial_origin表中的id )
     */
    private Integer sourceId;


    public String getSendDate() {
        return sendDate;
    }

    public void setSendDate(String sendDate) {
        this.sendDate = sendDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getRecDate() {
        return recDate;
    }

    public void setRecDate(Date recDate) {
        this.recDate = recDate;
    }

    public Date getDaStartTime() {
        return daStartTime;
    }

    public void setDaStartTime(Date daStartTime) {
        this.daStartTime = daStartTime;
    }

    public Date getDaEndTime() {
        return daEndTime;
    }

    public void setDaEndTime(Date daEndTime) {
        this.daEndTime = daEndTime;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Telegram{" +
                "id=" + id +
                ", recDate=" + recDate +
                ", sendDate=" + sendDate +
                ", daStartTime=" + daStartTime +
                ", daEndTime=" + daEndTime +
                ", priority='" + priority + '\'' +
                ", guid='" + guid + '\'' +
                ", origin='" + origin + '\'' +
                ", destination='" + destination + '\'' +
                ", text='" + text + '\'' +
                ", createTime=" + createTime +
                ", sourceId=" + sourceId +
                '}';
    }
}
